<!-- 访问统计 -->
<template>
  <div class="visit">
    <!-- 搜索记录 -->
    <div class="ViewMainTop" style="margin-bottom: 15px">
      <el-card>
        <!-- IP输入 -->
        <el-form
          ref="form"
          :inline="true"
          class="demo-form-inline"
          label-width="80px"
        >
          <el-form-item label="IP">
            <el-input placeholder="请输入IP" />
          </el-form-item>

          <el-form-item label="UA">
            <el-input placeholder="请输入UA" />
          </el-form-item>

          <el-form-item label="URL">
            <el-input placeholder="请输入URL" />
          </el-form-item>

          <el-form-item label="地址">
            <el-input placeholder="请输入地址" />
          </el-form-item>

          <el-form-item label="浏览器">
            <el-input placeholder="请输入浏览器" />
          </el-form-item>

          <el-form-item label="内核">
            <el-input placeholder="请输入内核" />
          </el-form-item>

          <el-form-item label="OS">
            <el-input placeholder="请输入OS" />
          </el-form-item>

          <el-form-item label="设备">
            <el-input placeholder="请输入地址" />
          </el-form-item>

          <div style="display: flex; justify-content: flex-end">
            <el-button type="primary" @click="get_fileList()">搜索</el-button>
            <el-button @click="reset()">重置</el-button>
          </div>
        </el-form> </el-card
      ><!-- 搜索记录结尾 -->
    </div>
    <!-- 搜索记录结尾 -->
    <!-- table数据 -->
    <div>
      <el-table
        ref="multipleTableRef"
        :data="tableData"
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55" />
        <el-table-column label="URL" width="120">
          <template #default="scope">{{ scope.row.date }}</template>
        </el-table-column>
        <el-table-column property="name" label="Name" width="120" />
        <el-table-column
          property="address"
          label="Address"
          show-overflow-tooltip
        />
      </el-table>
    </div>
    <!-- table数据结尾 -->
  </div>
  <!--vieit结尾 -->
</template>
<script lang="ts">
// 访问统计
import { defineComponent, reactive } from 'vue'
import axios from 'axios'

export default defineComponent({
  setup() {
    const visit = reactive({
      list: []
    })

    // axios.post('http://localhost:8080/api/get_visit').then((res)=>{
    //   console.log(res);
    // })

    return {
      visit
    }
  }
})
</script>
<style>
.visit-input {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.el-input {
  width: 300px;
}
</style>
